gtkentry: Remove dead assignments
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:30:07 +0000 (17:30 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

gtk/gtkentry.c

index dfe08d38331c0719d8e966de6c32d74548eaffae..d3f2ab58b959a09e6379cd7a1245735dd0e882f7 100644 (file)
@@ -9975,7 +9975,6 @@ gtk_entry_drag_motion (GtkWidget        *widget,
   state = gtk_style_context_get_state (style_context);
   gtk_style_context_get_padding (style_context, state, &padding);
   x -= padding.left;
-  y -= padding.top;
 
   get_icon_allocations (entry, &primary, &secondary);
 
@@ -10054,7 +10053,6 @@ gtk_entry_drag_data_received (GtkWidget        *widget,
   state = gtk_style_context_get_state (style_context);
   gtk_style_context_get_padding (style_context, state, &padding);
   x -= padding.left;
-  y -= padding.top;
 
   get_icon_allocations (entry, &primary, &secondary);